#include <rtthread.h>

static void atcmd(int argc, char**argv)
{
  if (argc < 2)
  {
    rt_kprintf("Please input'atcmd <server|client>'\n");
    return;
  }

  if (!rt_strcmp(argv[1], "server"))
  {
    rt_kprintf("AT server!\n");
  }
  else if (!rt_strcmp(argv[1], "client"))
  {
    rt_kprintf("AT client!\n");
  }
  else
  {
    rt_kprintf("Please input'atcmd <server|client>'\n");
  }
}

MSH_CMD_EXPORT(atcmd, atcmd sample: atcmd <server|client>);
